package com.nativetalk.bean.teacher;

import com.nativetalk.common.Constants;
import org.hibernate.validator.constraints.Email;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.math.BigDecimal;
import java.sql.Timestamp;

/**
 * TdNtTeacher entity. @author MyEclipse Persistence Tools
 */

public class TdNtTeacherLogin implements java.io.Serializable {

    /**
     *
     */
    private static final long serialVersionUID = 1L;
    // Fields

    private int tea_id;
    private String tea_name;
    @Email(message = "{EMAIL.REGEXP}")
    private String tea_email;
    @NotNull(message = "Sorry password format error. Numbers and letters accepted only.")
    @Pattern(regexp = "^[0-9a-zA-Z]{6,20}$", message = "Sorry password format error. Numbers and letters accepted only.")
    private String tea_password;
    private String code;//验证码
    private String invite_code;
    private String equ_type;//1android 2ios
    private String equ_client_id = Constants.default_equ_id;//设备唯一标示  Android:clientId ios:devicetoken

    public void setEqu_type(String equ_type) {
        this.equ_type = equ_type;
    }

    public void setEqu_client_id(String equ_client_id) {
        this.equ_client_id = equ_client_id;
    }

    public String getEqu_type() {
        return equ_type;
    }

    public String getEqu_client_id() {
        return equ_client_id;
    }

    private Timestamp tea_register_time;
    private String tea_register_month;
    private BigDecimal tea_balance;
    private String tea_islock;
    private String tea_head_portrait;
    private String tea_sex;
    private Timestamp tea_birthday;
    private String tea_synopsis;
    private String tea_sound_synopsis;
    private Integer tea_ages;
    private BigDecimal tea_score;
    private String tea_invite_code;
    private String token;

    public String getCode() {
        return code;
    }

    public String getInvite_code() {
        return invite_code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public void setInvite_code(String invite_code) {
        this.invite_code = invite_code;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public int getTea_id() {
        return tea_id;
    }

    public void setTea_id(int tea_id) {
        this.tea_id = tea_id;
    }

    public String getTea_name() {
        return tea_name;
    }

    public void setTea_name(String tea_name) {
        this.tea_name = tea_name;
    }

    public String getTea_email() {
        if (tea_email != null) {
            tea_email = tea_email.trim();
        }
        return tea_email;
    }

    public void setTea_email(String tea_email) {
        if (tea_email != null) {
            this.tea_email = tea_email.trim();
        } else {
            this.tea_email = tea_email;
        }
    }

    public String getTea_password() {
        return tea_password;
    }

    public void setTea_password(String tea_password) {
        this.tea_password = tea_password;
    }

    public Timestamp getTea_register_time() {
        return tea_register_time;
    }

    public void setTea_register_time(Timestamp tea_register_time) {
        this.tea_register_time = tea_register_time;
    }

    public String getTea_register_month() {
        return tea_register_month;
    }

    public void setTea_register_month(String tea_register_month) {
        this.tea_register_month = tea_register_month;
    }

    public BigDecimal getTea_balance() {
        return tea_balance;
    }

    public void setTea_balance(BigDecimal tea_balance) {
        this.tea_balance = tea_balance;
    }

    public String getTea_islock() {
        return tea_islock;
    }

    public void setTea_islock(String tea_islock) {
        this.tea_islock = tea_islock;
    }

    public String getTea_head_portrait() {
        return tea_head_portrait;
    }

    public void setTea_head_portrait(String tea_head_portrait) {
        this.tea_head_portrait = tea_head_portrait;
    }

    public String getTea_sex() {
        return tea_sex;
    }

    public void setTea_sex(String tea_sex) {
        this.tea_sex = tea_sex;
    }

    public Timestamp getTea_birthday() {
        return tea_birthday;
    }

    public void setTea_birthday(Timestamp tea_birthday) {
        this.tea_birthday = tea_birthday;
    }

    public String getTea_synopsis() {
        return tea_synopsis;
    }

    public void setTea_synopsis(String tea_synopsis) {
        this.tea_synopsis = tea_synopsis;
    }

    public String getTea_sound_synopsis() {
        return tea_sound_synopsis;
    }

    public void setTea_sound_synopsis(String tea_sound_synopsis) {
        this.tea_sound_synopsis = tea_sound_synopsis;
    }

    public Integer getTea_ages() {
        return tea_ages;
    }

    public void setTea_ages(Integer tea_ages) {
        this.tea_ages = tea_ages;
    }

    public BigDecimal getTea_score() {
        return tea_score;
    }

    public void setTea_score(BigDecimal tea_score) {
        this.tea_score = tea_score;
    }

    public String getTea_invite_code() {
        return tea_invite_code;
    }

    public void setTea_invite_code(String tea_invite_code) {
        this.tea_invite_code = tea_invite_code;
    }


}